-
Notifications
You must be signed in to change notification settings - Fork 585
Implement sizebytes for things in the tf transform cache #12038
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Web viewer built successfully.
View image diff on kitdiff. Note: This comment is updated whenever you push a commit. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR implements memory size tracking for the transform cache by adding SizeBytes trait implementations to various transform-related types, enabling their memory usage to appear in the memory panel.
Key Changes:
- Added
SizeBytesimplementations for transform cache structures - Added
glam::DAffine3to the list of primitive types with size tracking - Connected transform cache memory reporting to use the new size tracking
Reviewed changes
Copilot reviewed 5 out of 6 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| crates/viewer/re_view_spatial/src/caches/transform_database_store.rs | Implements SizeBytes for TransformDatabaseStoreCache and updates memory_report to use the new size tracking |
| crates/utils/re_byte_size/src/primitive_sizes.rs | Adds SizeBytes implementation for glam::DAffine3 type |
| crates/utils/re_byte_size/Cargo.toml | Adds glam workspace dependency |
| crates/store/re_tf/src/transform_resolution_cache.rs | Implements SizeBytes for multiple transform-related types including TransformResolutionCache, ParentFromChildTransform, CachedTransformsForTimeline, CachedTransformValue, TransformsForChildFrameEvents, TransformsForChildFrame, and ResolvedPinholeProjection |
| crates/store/re_tf/src/frame_id_registry.rs | Implements SizeBytes for FrameIdRegistry |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Wumpf
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
plz do struct deconstruction, see comment
thx!
Wumpf
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Related
What
Implements size bytes for the transform cache so its memory usage shows up in the memory panel.